﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Model.Dto.Article.Request
{
    public class CreateArticleInfoRequest
    {
        /// <summary>
        /// 文章标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 文章类型 字典值 例如：闲书、随笔...
        /// </summary>
        public string ArticleType { get; set; }

        /// <summary>
        /// 定时发布时间
        /// </summary>
        public DateTime? PublishTime { get; set; }

        /// <summary>
        /// 原始链接
        /// </summary>
        public string? PrimitiveLink { get; set; }

        /// <summary>
        /// 私密文章密码
        /// </summary>
        public string? Password { get; set; }

        /// <summary>
        /// 是否置顶
        /// </summary>
        public bool IsTop { get; set; }

        /// <summary>
        /// 是否红旗
        /// </summary>
        public bool IsRedFlag { get; set; }

        /// <summary>
        /// 是否原创
        /// </summary>
        public bool IsOriginal { get; set; }

        /// <summary>
        /// 是否可以评论
        /// </summary>
        public bool IsComments { get; set; }

        /// <summary>
        /// 是否私密
        /// </summary>
        public bool IsPrivacy { get; set; }

        /// <summary>
        /// 是否可用
        /// </summary>
        public bool Enable { get; set; }

        /// <summary>
        /// 文章标签
        /// </summary>
        public List<string> ArticleTag { get; set; }

        /// <summary>
        /// 文章内容
        /// </summary>
        public string Content { get; set; }
    }
}
